public class test3_22{
    public static void main(String[] args) {
        DateDay date = new DateDay(1,2);
        System.out.println(date.getX()+ date.getY());
    }
}
class DateDay{
    private int x;
    private int y;
    public DateDay(int x,int y){
        this.x =x;
        this.y =y;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
    public void func(){
        DateDay date =new DateDay(1,2);
    }
}
